package com.findmemory.website;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.findmemory.website.config.AppConfig;
import com.renren.api.client.RenrenApiConfig;
public class ApiInitListener implements ServletContextListener{
	public void contextDestroyed(ServletContextEvent arg0) { 
		//Nothing to do 
		} 
	public void contextInitialized(ServletContextEvent arg0) { 
		RenrenApiConfig.renrenApiKey = AppConfig.API_KEY; 
		RenrenApiConfig.renrenApiSecret = AppConfig.APP_SECRET; 
	}
}